package net.asfun.jvalog.util;

public class UpdateManager {

	public static boolean updCounter = false;
	public static boolean updCache = false;
	public static boolean updStatic = false;
	
	synchronized protected static void updm(boolean tof) {
		updCounter = tof;
	}
	
	synchronized protected static void updc(boolean tof) {
		updCache = tof;
	}
	
	synchronized protected static void upds(boolean tof) {
		updStatic = tof;
	}
	
	public static void enableCounterTask() {
		updm(true);
		updc(true);
	}
	
	public static void enableCacheTask() {
		updc(true);
	}
	
	public static void enableStaticTask() {
		upds(true);
		updc(true);
	}
	
}
